package com.victualler.core.config.img.entity;


import com.victualler.core.base.dao.BaseDao;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Author: Guoshichang
 * @Date: Create in 11:10 2018/4/6
 * @Discription:  图片资源管理表
 */
@Entity
@Table(name="common_img")
public class ImageItemDao extends BaseDao implements Serializable{

    @Column(nullable = false)
    private String fileName; //文件对应的名称
    @Column(nullable = false)
    private String prePath; //文件对应的前缀目录
    @Column(nullable = false)
    private String filePath; //文件对应的目录
    @Column(nullable = false)
    private long fileSize; //文件对应的大小
    @Column
    private Long imageDirId; //文件夹id
    public ImageItemDao() {
    }

    

    public ImageItemDao(String fileName, String prePath, String filePath, long fileSize, Long imageDirId) {
		super();
		this.fileName = fileName;
		this.prePath = prePath;
		this.filePath = filePath;
		this.fileSize = fileSize;
		this.imageDirId = imageDirId;
	}




    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getPrePath() {
        return prePath;
    }

    public void setPrePath(String prePath) {
        this.prePath = prePath;
    }

    public Long getImageDirId() {
        return imageDirId;
    }

    public void setImageDirId(Long imageDirId) {
        this.imageDirId = imageDirId;
    }
}
